package com.sugon.modules.analyse.model.chart;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description: 饼状图Series数据明细VO
 * @author: YuXD
 * @create: 2020-05-17 10:38
 **/
@NoArgsConstructor
@Data
public class PieChartSeriesDataItemVO implements Serializable {

    /**
     * name
     */
    private String name;

    /**
     * value
     */
    private Integer value;

    /**
     * 构造方法
     *
     * @param name
     * @param value
     */
    public PieChartSeriesDataItemVO(String name, Integer value) {
        this.name = name;
        this.value = (value == null ? 0 : value);
    }
}
